package ooday01;

public class Student {
    String name;
    int age;

    String className;
    String stuId;
    public Student(String name, int age, String className, String stuId) {
        this.name = name;
        this.age = age;
        this.className = className;
        this.stuId = stuId;
    }
    void study(){
        System.out.println(name+"在学习");
    }
    void sayHi(){
        System.out.println("我叫"+name+"已经"+age+"岁"+"所在的班级是"+className+"学号是"+stuId);
    }
    void play(String newName){
        System.out.println(name+"正在与"+newName+"一起玩");
    }
}
